package com.mn;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.mn.services.Calculator;

/**
 * Hello world!
 *
 */

public class App {

	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
				"context.xml");

		Calculator calculator = (Calculator) applicationContext
				.getBean("calculator");

		System.out.println(calculator.add(10, 20));

	}

}
